from django.conf.urls import url
from apps.courses.views import CourseView, CourseDetailView, CourseVideoView,\
    CourseCommentView,CoursePlayerView,TeacherView,TeacherDetailView

urlpatterns = [
    url(r'^list/$', CourseView.as_view(), name='list'),
    url(r'^(?P<course_id>\d+)/$', CourseDetailView.as_view(), name='detail'),
    url(r'^(?P<course_id>\d+)/video/$', CourseVideoView.as_view(), name='video'),
    url(r'^(?P<course_id>\d+)/comment/$', CourseCommentView.as_view(), name='comment'),
    url(r'^(?P<video_id>\d+)/player/$', CoursePlayerView.as_view(), name='player'),

]
